package com.stylefeng.guns.modular.util;

import java.util.Random;


/**
 * 数字工具类
 * @author liqi
 *
 */
public class NumUtil {

	/**
	 * 获取随机数
	 * 
	 * @param min
	 * @param max
	 * @return
	 */
	public static int getRandom(int min, int max) {
		Random random = new Random();
		int value = random.nextInt(max) % (max - min + 1) + min;
		return value;
	}
}
